﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL.Artwork;

namespace WebApplication.Setting
{
    public partial class ArtWork : System.Web.UI.Page
    {
        public int totalCount = 0;

        private ArtworkService artworkService = new ArtworkService();

        public List<Models.Artworks> artworks = new List<Models.Artworks>();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UID"] == null)
            {
                Response.Redirect("/");
                return;
            }
            int uid = Convert.ToInt32(Session["UID"]);

            artworks = artworkService.GetList(ref totalCount, uid, 1, 999, "OrderNum Desc");
        }
    }
}